Refactored the alerting functionality