added final step to alert_frequency.