Solved some issues with the alarms, implemented the timeout.