; and (B) by adding at the end the following: (B) Officers of the house of representatives (i) Any person who is an elected officer of the House of Representatives and who, within 1 year after that person leaves office, knowingly makes, with the intent to influence, any communication to or appearance before any of the persons described in clause (ii), on behalf of any other person (except the United States) in connection with any matter on which such elected officer seeks action by a Member, officer, or employee of either House of Congress, in his or her official capacity, shall be punished as provided in section 216 of this title. (ii) The persons referred to in clause (i) with respect to appearances or communications by a former elected officer are any Member, officer, or employee of the House of Representatives. . (b) Restrictions relating to foreign entities Section 207(f) of title 18, United States Code, is amended— (1) in paragraph (1), by striking Any person and inserting Except as provided in paragraph (2), any person ; (2) by redesignating paragraphs (2) and (3) as paragraphs (3) and (4), respectively; (3) by adding after paragraph (1) the following new paragraph: (2) Member of Congress With respect to the restrictions under paragraph (1), any person who is a Member of Congress may not engage in any of the activities under such paragraph at any time after leaving office. ; and (4) in paragraph (4), as redesignated by paragraph (2)— (A) by striking means and inserting means— ; (B) by striking the government and inserting (A) the government ; (C) by striking the period and inserting ; or