Set alarms. Needs lots of testing.