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 , writs and other orders of the courts.