Adjust interval to user input.