Implement batch mode control flow.