Debug leftovers?
Also why does this function return back the stream pointer?