Law enforcement in the United States is one of three major components of the criminal justice system, along with courts and corrections. Although there exists an inherent interrelatedness between the different groups that make up the criminal justice system based on their crime deterrence purpose, each component operates independently from one another. However, the judiciary is vested with the power to make legal determinations regarding the conduct of the other two components.Apart from maintaining order and service functions, the purpose of policing is the investigation of suspected criminal activity and the referral of the results of investigations and of suspected criminals to the courts. Law enforcement, to varying degrees at different levels of government and in different agencies, is also commonly charged with the responsibilities of deterring criminal activity and of preventing the successful commission of crimes in progress; the service and enforcement of warrants, writsand other orders of the courts.