Adds logic to set the interval based on user input and the addition of bounds.