Patching index file.