Hi boatman. What do you mean by "some trouble"? Have you tried adding debug printf's of Algo and the various other variables to see what's really going on?

HTH.