; 129 Stat. 2497) is amended by striking Provided further , That funding made available under this heading shall maintain a level of not less than 34,000 detention beds through September 30, 2016: . (b) Detention capacity Notwithstanding any other provision of law, the number of detention beds maintained by U.S. Immigration and Customs Enforcement shall be determined by the Secretary of Homeland Security and shall be based solely on detention needs. (c) Alternatives to detention (1) In general The Secretary of Homeland Security shall establish nationwide alternatives to detention programs that incorporate case management services in each field office of the Department of Homeland Security to ensure appearances at immigration proceedings and public safety. (2) Contract authority The Secretary may contract with nongovernmental community-based organizations— (A) to conduct screening of detainees; (B) to operate community-based supervision programs