Added batch mode, more glitch options