Simpler duplicates checking