Thanks everyone for the replies. Functionally, the subroutine path does make good sense and probably should be the way to implement this. Procedurely, ikegami's earlier suggestion with the for(;;){} construct worked like a charm. Thanks again to all.