Support for chained batches

Proposed solution for issue #44

Ideally, it should pay attention to options objects beyond just the
prefix option, but I didn’t feel like messing with the original batch
functions that much.
5.2.0