Alarm.c modified