Add option to log to file.