Add a batch_execute method