Implement index generation on clone