Write output to files rather than on the console