                         runCase(caseIdx+1, caseCount: caseCount, block: block)
                     }
                 }
-                if keepStatsUpdated {
+                if keepStatsUpdated || caseIdx % 10 == 0 {
                     updateReports(false, block: f)
                 } else {
                     f()

            //printinfo("INFORMATIONAL")
        } else {
            print("[ERR] FAILED: \(error!.localizedDescription)")
            exit(1)
        }
    }
}

    }
    runCase(startCase-1, caseCount: count){ (error) in
        if error == nil{
            updateReports(true){
               exit(0)
            }
        } else {
            updateReports(true){
               exit(1)
            }
        }
    }
}
