Initial alarm system pseudocode