Did some basic while loop stuff