; or (2) such employee of such entity to the Agency. (d) Agreements (1) In general Before any temporary assignment may be made under the program, the Director of the Cybersecurity and Infrastructure Security Agency shall enter into a written agreement with the private sector entity and the employee concerned regarding the terms and conditions of such assignment, which shall— (A) require that an employee of the Cybersecurity and Infrastructure Security Agency, upon completion of such assignment, serve in the Cybersecurity and Infrastructure Security Agency, or, if appropriate, elsewhere in the civil service, for a period of time equal to at least twice the length of such assignment; (B) provide that if an employee of the Cybersecurity and Infrastructure Security Agency or of the private sector entity, as the case may be, fails to abide by the terms of such agreement, such employee shall be liable to the United States for payment of all expenses of the assignment of such employee, including the value of the salary and benefits of such employee, unless such failure was for good cause as determined by the Director of the Cybersecurity and Infrastructure Security Agency