Create while loop (kind of confusing)