Added code to log results to aggregate file