Replace stdmsg with stderr