This should be within the while condition