Sorry I didn't realized that initialization here. Usually I'd move them right above the `while` statement, but it's ok this way.