in the Department of State, while the member or employee is engaged exclusively in the performance of activities that are recognized by the Department of State as being within the scope of the functions of the member or employee. (4) Persons engaging or agreeing to engage in the soliciting or collecting of funds for humanitarian relief A person engaging or agreeing to engage only in the soliciting or collecting of funds and contributions within the United States to be used only for medical aid and assistance, or for food and clothing to relieve human suffering, if the solicitation or collection of funds and contributions is in accordance with, and subject to, the provisions of the Neutrality Act of 1939 ( 22 U.S.C. 441 et seq.), and such rules and regulations as may be prescribed thereunder. (5) Certain persons qualified to practice law (A) In general A person qualified to practice law, insofar as the person engages, or agrees to engage in, the legal representation of a disclosed foreign entity before any court of law or any agency of the Government of the United States. (B) Legal representation For the purpose of this paragraph, legal representation does not include any attempt to influence or persuade agency personnel or officials other than in the course of— (i) a judicial proceeding