Beginnings of BatchIterator.