Moved send_alerts out of per device section.