Completed alarm.py