The Government of Sri Lanka maintains intelligence agencies that conduct intelligence activities to support the national security of Sri Lanka. Their intelligence assessments contribute to the conduct of national security, military planning and law enforcement. The main organisations are the State Intelligence Service and the Directorate of Military Intelligence. These intelligence agencies are coordinated by the Chief of National Intelligence (CNI), who reports to the Secretary of Defense. Current agencies Sri Lanka Police State Intelligence Service Special Branch Terrorist Investigation Division Criminal Investigation Department Sri Lanka Army Directorate of Military Intelligence Military Intelligence Corps Sri Lanka Navy Department of Naval Intelligence Sri Lanka Air Force Directorate of Air Intelligence Central Bank of Sri Lanka Financial Intelligence Unit (Sri Lanka), History Colonial era Formal intelligence gathering was established in the 19th century by the colonial government of Ceylon with the Police Ordinance No.16 of 1865 which give the Ceylon Police Force provisions to "collect and communicate intelligence affecting the public peace". With the establishment of the Criminal Investigation Department (CID) in the Ceylon Police Force in 1870, intelligence gathering and investigations in the internal security were undertaken by the CID. Post independence Following Ceylon's independence in 1948, the police department came under the Ministry of External Affairs and Defence and continued its traditional role in intelligence. The police failed to detect the attempt military coup in 1962 until CID was notified in the eleventh-hour by one of the plotters, allowing CID and armed forces to prevent the coup from taking place. In 1966, the CID was able to detect another possible attempt coup. The Special Branch was created as part of the CID in 1966, however it was disbanded by Sirimavo Bandaranaike after she was elected as prime minister in 1970. 1971 JVP Insurrection Although CID investigations had taken place in to the Che Guevara clique and the arrest of JVP leader Rohana Wijeweera; the police failed to gauge scale and magnitude of the JVP insurrection which was launched in April 1971 taking the Bandaranaike government off-guard. In the months that followed, the government gained the assistance of British MI5 in counterinsurgency operations against the JVP. The police with the armed forces carried-out internal security operations to identify JVP carders and sympathizers in the community and within the government. Notable arrests included Captain Ravi Jayewardene, S. D. Bandaranayake and Susil Siriwardene. Civil War By the 1980s Tamil militancy was on the