e0f377fec0
Batch replaced to use new api. User code doesn't need this, but examples should be up to date, and this avoids deprecation warnings.