Redesign of markDuplicate() completed.