Finally have a working something, still needs to add to a list, and check for alarms.