Added range check on user input.