Added alarms support.
Added two alarms to the example.