Add unique indices