Added user input for time limits