Add arguments to raiseNotifications function