Adds support for batching requests.