Added main::scoped_output