Now writes results to log file