guigouz: but if you have it working with a while loop, just wrap it up in a helper function and move on