Changed that algorithms get a file path to write results to