added timer 2 to detect inactivity, put to sleep