Call addBatch only if in batch mode