Saving output to file rather than printing to screen.