Streamlines while loop