AlarmScheduler got some common code