; and (B) the applicant lacks substantial ties to the United States as defined in paragraph (3) or requests resettlement to a country other than the United States. (2) Bilateral agreements for referral of refugees (A) In general The Secretary of State, in consultation with the Secretary of Homeland Security, shall enter into bilateral agreements with other countries for the referral, processing, and resettlement of individuals who register with a Designated Processing Center and seek to apply for refugee resettlement under this section. Such agreements shall be limited to countries with the demonstrated capacity to accept and adjudicate applications for refugee status, and other forms of international protection, and resettle refugees consistent with obligations under the 1951 United Nations Convention Relating to the Status of Refugees and the 1967 United Nations Protocol Relating to the Status of Refugees. (B) International organizations The Secretary of State, in consultation with the Secretary of Homeland Security, shall enter into agreements with international organizations, including the United Nations High Commissioner for Refugees, to facilitate the referral, processing, and resettlement of individuals covered under this paragraph. (3) Substantial ties defined An individual has substantial ties to the United States if the individual— (A) has a spouse, parent, son, daughter, sibling, grandparent, aunt, or uncle who resides in the United States; (B) can demonstrate previous residence in the United States for not less than 2 years