Change SizeIterator to IndexIterator