Merge duplicates.