Dedup script finally worked