Initialize batch mode