Create index building script