A Program for the Spread Algorithm