Added the index stuff to create new indices based on existig indices