Separating the alert functions in alerts.rb.