Law enforcement agencies in Ukraine are organised under the authority of the Ministry of Internal Affairs. They consist primarily of the national police force and various specialised units and agencies such as the State Border Guard and the Coast Guard services. Law enforcement agencies, particularly the police, faced criticism for their heavy handling of the 2004 Orange Revolution. Many thousands of police officers were stationed throughout the capital, primarily to dissuade protesters from challenging the state's authority but also to provide a quick reaction force in case of need; most officers were armed. Bloodshed was only avoided when Lt. Gen. Sergei Popkov heeded his colleagues' calls to withdraw.