Adding event hook for notifications.