With the establishment of the State Agency for National Security - SANS (Bulgarian: Darzhavna Agentsiya za Natsionalna Sigurnost - DANS, Държавна агенция за национална сигурност - ДАНС) part of the military security personnel came under its authority. Before that the security aspects of the armed forces were handled by a unified organisation under the General Staff - the "Military Service of Security and Military Police". After the formation of SANS the service was split, with the military counter-intelligence personnel entering the newly formed structure and the military police personnel staying under Ministry of Defense subordination. While technically civilian servants not part of the armed forces, the military counter-intelligence personnel of the State Agency of National Security retain their military ranks.