; or (2) a person operates the vessel under the authority of a foreign country. ; and (5) by striking subsection (d), as so redesignated, and inserting the following: (d) Waivers (1) Notwithstanding any other provision of law, when the President, the Secretary of Defense, or the Secretary of Transportation declares the existence of an emergency justifying a temporary waiver of this section or section 55314 of this title, the President, the Secretary of Defense, or the Secretary of Transportation, following a determination by the Maritime Administrator, acting in the Administrator’s capacity as Director, National Shipping Authority, of the non-availability of qualified United States flag capacity at fair and reasonable rates for commercial vessels of the United States to meet the requirements of this section or section 55314 of this title, may waive compliance with such section to the extent, in the manner, and on the terms the Maritime Administrator, acting in such capacity, prescribes, and no other waivers of the requirements of this section or section 55314 of this title shall be authorized. (2) (A) Subject to subparagraphs (B) and (C), a waiver issued under this subsection shall be for a period of not more than 60 days. (B) Upon termination of the period of a waiver issued under this subsection, the Maritime Administrator may extend the waiver for an additional period of not more than 30 days, if the Maritime Administrator makes the determinations described in paragraph (1). (C) The aggregate duration of the period of all waivers and extensions of waivers under this subsection with respect to any one set of events shall not exceed three months in a fiscal year. (3) The Maritime Administrator shall— (A) for each determination referred to in paragraph (1), identify any actions that could be taken to enable qualified United States flag capacity to meet the requirements of this section or section 55314 at fair and reasonable rates for commercial vessels of the United States