Clone logic.