; (6) whether the facility is in compliance with the standards established pursuant to section 2; (7) for each facility that is not owned by the Department of Homeland Security, the nature of the contract providing for the detention of aliens at such facility; and (8) the average number of days that an alien has been detained at the facility during the preceding month. (f) Online detainee locator system The Secretary of Homeland Security shall ensure that the online detainee locator system maintained by the Department of Homeland Security, or any successor system, is updated not later than 12 hours after an alien is— (1) taken into custody or released from custody by the Department of Homeland Security; (2) transferred to, or detained in, a detention facility; or (3) removed from the United States. (g) Information collected and maintained for aliens in the custody of the Department of Homeland Security The Secretary of Homeland Security shall collect and maintain, for each alien in the custody of the Department of Homeland Security— (1) the gender and age of the alien; (2) the date on which the alien was detained; (3) whether the alien is considered a vulnerable person (as defined in section 236(g) of the Immigration and Nationality Act ( 8 U.S.C. 1226(g) ) or a primary caregiver; (4) the provision of law under which the Secretary is authorized to detain the alien; (5) the location where the alien is detained; (6) any transfer of the alien to another detention facility, and the reason for such transfer; (7) the status and basis of any removal proceedings; (8) the initial custody determination made by U.S. Immigration and Customs Enforcement, and any review of such determination; (9) the date of the alien’s release or removal, if applicable, and the reason for such release or removal