Allow configuration of batch size.