More work in BatchRangeIterator.