Fixed height of while loop