Added error stream to file output.