Updating index script.