This code gets rewritten a lot. Should unify so that we can convert indices
This code gets rewritten a lot. Should unify so that we can convert indices