Better UpdateBatch code.