Added functionality to limit input to timer.