Added AuthorizeOutgoingMessages code