and was sent into exile in Ankara. His successor, Joseph I, managed to develop and considerably extend its church and school network in the Bulgarian Principality, Eastern Rumelia, Macedonia and the Adrianople Vilayet. In 1895, the Tarnovo Constitution formally established the Bulgarian Orthodox Church as the national religion of the nation. On the eve of the Balkan Wars, in Macedonia and the Adrianople Vilayet, the Bulgarian Exarchate had seven dioceses with prelates and eight more with acting chairmen in charge and 38 vicariates; 1,218 parishes and 1,212 parish priests; 64 monasteries and 202 chapels; as well as of 1,373 schools with 2,266 teachers and 78,854 pupils. After World War I, by virtue of the peace treaties, the Bulgarian Exarchate was deprived of its dioceses in Macedonia and Aegean Thrace. Exarch Joseph I transferred his offices from Istanbul to Sofia as early as 1913. After the death of Joseph I in 1915, the Bulgarian Orthodox Church was not in a position to elect its regular head for a total of three decades. Second restoration of the Bulgarian Patriarchate Conditions for the restoration of the Bulgarian Patriarchate and the election of a head of the Bulgarian Church were created after World War II. In 1945 the schism was lifted and the Patriarch of Constantinople recognised the autocephaly of the Bulgarian Church. In 1950, the Holy Synod adopted a new Statute which paved the way for the restoration of the Patriarchate and in 1953, it elected the Metropolitan of Plovdiv, Cyril, Bulgarian Patriarch. After the death of Patriarch Cyril in 1971, in his place was elected the Metropolitan of Lovech, Maxim, leading the church until his death in 2012. On 10 November 2012 Metropolitan Cyril of Varna and Veliki Preslav was chosen as interim leader to organize the election of the new Patriarch within four months. At the church council convened to elect a new Patriarch 24 February 2013, the Metropolitan of Ruse, Neophyt was elected Patriarch of the Bulgarian Orthodox Church with 90 votes against 47 for Metropolitan Gabriel of Lovech. Under Communism (1944–89), Bulgaria's rulers worked to control rather than destroy the church. Still, the early postwar years were unsettling to church hierarchs. During 1944-47 the church was deprived of jurisdiction in marriage, divorce, issuance of birth and death certificates, and other passages that had been sacraments as well as state events. Communists removed study of the catechism and church history