Implement markDuplicate().