Add support for batch requests.