Added computation of statistics and report printout