; (2) processing appointments; (3) booking or intake questions; (4) hearings; and (5) any procedure that may result in a conclusion that the detainee will be detained or removed from the United States. . (c) Notice (1) Amendment Section 236 of such Act, as amended by subsection (b)(3), is further amended by inserting before subsection (j), the following: (i) Notice and charges (1) In general Not later than 48 hours after the commencement of a detention of an individual under this section, the Secretary of Homeland Security shall— (A) file a Notice to Appear or other relevant charging document with the immigration court closest to the location at which the individual was apprehended; and (B) serve such notice or charging document on the individual. (2) Custody determination Any individual who is detained under this section for more than 48 hours shall be brought before an immigration judge for a custody determination not later than 72 hours after the commencement of such detention unless the individual waives the right in accordance with paragraph (3). (3) Waiver The requirements of this subsection may be waived for not more than 7 days if the detainee— (A) enters into a written agreement with the Department of Homeland Security to waive such requirements; and (B) is prima facie eligible for immigration benefits or demonstrates prima facie eligibility for a defense against removal. . (2) Applicability of other law Nothing in subsection (i) of section 236 of the Immigration and Nationality Act, as added by paragraph (1), may be construed to repeal section 236A of such Act ( 8 U.S.C. 1226a ). (d) Access to telephones (1) In general Not later than 6 hours after the commencement of a detention of an individual during an immigration-related enforcement activity, an official of the Department or a law enforcement agency shall provide the individual with access to a telephone to make telephone calls at no charge to the detainee to— (A) the consulate of the individual