Added more efficient results file creation.