Alarm functionality added