Add a docstring for _index_steps