Define these two outside the `while` loop?