Now outputs results to file