; and (ii) to determine whether there is any criminal, national security, or other factor that would render the alien ineligible for such status. (B) Completion of background checks The security and law enforcement background checks of an alien required under subparagraph (A) shall be completed, to the satisfaction of the Secretary, before the date on which the Secretary grants such alien permanent resident status on a conditional basis under this section. (8) Medical examination (A) Requirement An alien applying for permanent resident status on a conditional basis under this section shall undergo a medical examination. (B) Policies and procedures The Secretary, with the concurrence of the Secretary of Health and Human Services, shall prescribe policies and procedures for the nature and timing of the examination required under subparagraph (A). (9) Military selective service An alien applying for permanent resident status on a conditional basis under this section shall establish that the alien has registered under the Military Selective Service Act ( 50 U.S.C. 3801 et seq.), if the alien is subject to registration under such Act. (c) Determination of continuous presence (1) Termination of continuous period Any period of continuous physical presence in the United States of an alien who applies for permanent resident status on a conditional basis under this section shall not terminate when the alien is served a notice to appear under section 239(a) of the Immigration and Nationality Act ( 8 U.S.C. 1229(a) ). (2) Treatment of certain breaks in presence (A) In general Except as provided in subparagraphs (B) and (C), an alien shall be considered to have failed to maintain continuous physical presence in the United States under subsection (b)(1)(A) if the alien has departed from the United States for any period exceeding 90 days or for any periods, in the aggregate, exceeding 180 days. (B) Extensions for extenuating circumstances The Secretary may extend the time periods described in subparagraph (A) for an alien who