Implemented a potential implementation of recovering alarms after reboot.