Setup alarm logic, still in progress