Replaced index creation script with template creation script