Dedup now works by iteration