For loop converted to while loop for processing