in the Budapest Convention and declared that Bosnia-Herzegovina would be jointly occupied by Russian and Austrian troops. The Treaty of San Stefano was overturned by the 1878 Treaty of Berlin. Under article 29, Austria-Hungary received special rights in the Ottoman Empire's provinces of Bosnia-Herzegovina and the Sanjak of Novi Pazar. Article 25 stated that "The provinces of Bosnia and Herzegovina shall be occupied and administered by Austria-Hungary" and continued "Austria-Hungary reserves the right to maintain garrisons and to have military and trading roads over the whole area of that portion [the Sanjak of Novi Pazar] of the ancient Vilayet of Bosnia." The Bosniak-dominated Sanjak of Novi Pazar separated Montenegro from Serbia and prevented the geographic and political union of these two states which were often closely aligned. The Austrian occupation of the Sanjak was also significant because it provided Austria-Hungary with a staging area for possible future expansion towards the Aegean port of Salonika in Ottoman controlled Macedonia. The Bosnian population was already religiously divided into Muslims, Catholics and Orthodox Christians. Austria-Hungary exercised its legal rights, taking firm control of Bosnia-Herzegovina and jointly occupying the Sanjak of Novi Pazar together with the Ottoman Empire. The Treaty of Berlin allowed for sole Austrian occupation of Bosnia-Herzegovina, but did not specify a final disposition of the provinces. This omission was addressed in the Three Emperors' League treaty of 1881, where both Germany and Russia endorsed Austria's right to annex Bosnia-Herzegovina. A bilateral commercial treaty between Austria and Serbia in the same year had a secret annexe, stating that "Serbia 'would not permit any political, religious or other intrigue to be directed from her territory against the Austro-Hungarian monarchy, including Bosnia, Herzegovina and the Sanjak of Novi Pazar'". However, by 1897, under the new Tsar, Nicholas II, the Russian Imperial government had managed, again, to withdraw its support for Austrian annexation of Bosnia-Herzegovina. The Russian Foreign Minister, Count Michael Muraviev, stated that an Austrian annexation of Bosnia-Herzegovina would raise "an extensive question requiring special scrutiny". Serbia allowed their obligations under the commercial treaty of 1881 to lapse in 1899. In 1903 the King of Serbia was assassinated in a coup and the pro-Russian Karađorđević dynasty came to the throne. Power shifted to elements widely interested in expansion into Bosnia. The new Serbian government wanted to take over the Sanjak of Novi Pazar and Bosnia-Herzegovina from the Austro-Hungarians. Relations between Serbia and Austria-Hungary gradually