Update to add alarm functionality