Improving alarmLogic