Added temporary result file writer