Added a mechanism for generating notifications.