Batching functions to ease creation of batched calls