; and (B) to pay to the American Institute in Taiwan any additional expenses incurred by the Federal Government in connection with the fellowship if the detailee voluntarily separates from service with the sponsoring agency before the end of the period for which the detailee has agreed to continue in the service of such agency. (3) Exception The payment agreed to under paragraph (2)(B) may not be required of a detailee who leaves the service of the sponsoring agency to enter into the service of another agency of the United States Government unless the head of the sponsoring agency notifies the detailee before the effective date of entry into the service of the other agency that payment will be required under this subsection. (b) Status as Government employee A detailee— (1) is deemed, for the purpose of preserving allowances, privileges, rights, seniority, and other benefits, to be an employee of the sponsoring agency; (2) is entitled to pay, allowances, and benefits from funds available to such agency, which is deemed to comply with section 5536 of title 5, United States Code; and (3) may be assigned to a position with an entity described in section 4(d)(2)(A) if acceptance of such position does not involve— (A) the taking of an oath of allegiance to another government; or (B) the acceptance of compensation or other benefits from any foreign government by such detailee. (c) Responsibilities of sponsoring agency (1) In general The Federal agency from which a detailee is detailed should provide the fellow allowances and benefits that are consistent with Department of State Standardized Regulations or other applicable rules and regulations, including— (A) a living quarters allowance to cover the cost of housing in Taiwan; (B) a cost of living allowance to cover any possible higher costs of living in Taiwan; (C) a temporary quarters subsistence allowance for up to 7 days if the fellow is unable to find housing immediately upon arriving in Taiwan