Law enforcement agencies are also involved in providing first response to emergencies and other threats to public safety ; the protection of certain public facilities and infrastructure ; the maintenance of public order; the protection of public officials; and the operation of some correctional facilities (usually at the local level).