Added option for multiple sets of indices