Changed the alarm.c, simplicity