Implement very simple batching (just a proof of concept).