Enabled both writing to files and stdio