Inital index generation script.