Leaving out the while loop to allow app to control the logic.