Added send pending notifications function