Redirect output to files.