Continuing to abstract the index creation
Improved get_rangesrvs to avoid communication