I'm glad I could help, doc! After further testing, the modification I made from the original algorithm seems to have sped up the function rather than slow it down:

While $a and $b
Loop

Runs faster than:

While $a
If not $b Goto out endif
Loop
:out

.....
I'm going to see if there are other changes that KiXtart would like.

Brian