Adding script to make index tree.