Would this be better done as a loop? It looks to me like the code for "Add second alarm" is identical to that for "Add first alarm", so a loop would save a ton of duplicate code.