Implement simple batcher.