Loop on user input.