Standardized while loop style.