Added timer1fn and timer2fn