Add local batching.