Added further integration code for alarm creation and storage.