Add index and script