Added function for getting notifications.