Fixed batch API to allow concurrent commits