Find duplicates more reliably.