Adding function getNotifications