Initial import.
More tweaks to the alarm code.