Add current-tree-index.