. "and functions, such as detention cen- ters, intake and assessment" . . . .