Updated the index script generator.