Adds indices and unique indices to data thus far.