Changed MainDriver so that all results are printed at the very end.