Added streaming file output.