Streaming output works again. Closes #1047