Created a status listener to alert of status changes.