I would really like to avoid adding more code to app.js? Maybe we can add this code to the alarm controller? This would simplify some other things.