Get rid of the useless tests.
Make the toggle button start and stop the alarm.