Added message batching support.