Suggest checking this in the while loop