Correctly indented code for while loop to work