Create Alarm code