Adding script to automate updating the index