Fix identation and add new method set_alarm