Now outputting results to file