More work on duplicates.