Use index to locate script