Add batchMode flag, runs simulation until end