Added timer init code to timer1_sleep