Looking for 5 minutes - the next nice round 5 minutes.

    while(alarmFlag != true) {}

Unless alarmFlag is set in an interrupt, you will never get out of that loop.