Check for duplicates and warn if there are any