Add script to build index