Revised the program to keep the old result in memory, and save each report in log file instead of outputting them on screen