Use "dbg_stream" rather than "stream" as a variable name in