Added line to controller checking if the timer has expired