Added cases to act alerts. This bit needs to be refactored because it's horribly ugly and I have nobody to blame but myself.