; or (B) knowingly makes, with the intent to influence, or with the intent to gain information for use in analyzing securities or commodities markets, or in informing investment decisions in securities or commodities markets, any communication to or appearance before any officer or employee of any department, Executive agency, Member, officer, or employee of either House of Congress or any employee of any other legislative office of the Congress, on behalf of any other person (except the United States or the District of Columbia) for compensation, in connection with any matter on which such person seeks official action by any Member, officer, or employee of either House of Congress, or any employee or officer of any department or agency Executive agency, shall be subject to the penalties set forth in section 216 of this title. (2) Other officials (A) In general Any officer or employee in the executive or legislative branch of the United States who, during the time period described in subparagraph (B) makes, with the intent to influence, or with the intent to gain information for use in analyzing securities or commodities markets, or in informing investment decisions in securities or commodities markets, any communication to or appearance before their former office, Executive agency, or House of Congress, for compensation, shall be subject to the penalties set forth in section 216 of this title. (B) Time period The time period described in this subparagraph is as follows: (i) With respect to an officer or employee of the legislative branch, 2 years after the termination of service or employment as an officer or employee. (ii) With respect to an officer or employee of the executive branch, the later of— (I) the date on which a President other than the President serving at the time of the termination of service or employment of the officer or employee takes office