Added email batching support.