OK, all that's left on my list now is to finish the top-level loop and make the thing compile. Then I get to find all the bugs I wrote into the new code... Daniel