Use BatchIterator through all of the examples.