; . (2) No exercise by officers in chain of command of accused or victim Section 822 of title 10, United States Code (article 22 of the Uniform Code of Military Justice) is amended by adding at the end the following new subsection: (c) An officer specified in subsection (a)(8) may not convene a court-martial under this section if the officer is in the chain of command of the accused or the victim. . (3) Offices of Chiefs of Staff on courts-Martial (A) Offices required The Chief of Staff of the Army, the Chief of Naval Operations, the Chief of Staff of the Air Force, or the Commandant of the Marine Corps shall establish an office to do the following: (i) To convene general and special courts-martial under sections 822 and 823 of title 10, United States Code (articles 22 and 23 of the Uniform Code of Military Justice), pursuant to paragraph (8) of section 822(a) of title 10, United States Code (article 22(a) of the Uniform Code of Military Justice), as amended by paragraph (1), with respect to a sex-related offense (as defined in section 834(d)(2) of title 10, United States Code (article 34(d)(2) of the Uniform Code of Military Justice)). (ii) To detail under section 825 of title 10, United States Code (article 25 of the Uniform Code of Military Justice), members of courts-martial convened as described in clause (i). (B) Personnel The personnel of each office established under subparagraph (A) shall consist of such members of the Armed Forces and civilian personnel of the Department of Defense as may be detailed or assigned to the office by the Chief of Staff or Commandant concerned. The members and personnel so detailed or assigned, as the case may be, shall be detailed or assigned from personnel billets in existence on the date of the enactment of this Act. (d) Implementation and effective date (1) Funding source The Secretaries of the military departments shall carry out subsections (a), (b), and (c) (and the amendments made by such subsections) using funds appropriated after the date of enactment of this Act