Added check for notification duplicates