Deduping code.