Added back the timer and its ISR that were removed earlier.