Added logic to retrieve notifications.
Diagram updates.