General Nazarbekov, the Armenian Corps Commander based in Yerevan acting through a French intermediary, agreed to the surrender of the city and its garrison on April 25, 1918. At the same time the batteries surrounding the city were occupied and in the evening a regiment from the Ottoman I Caucasian Corps entered into the city and took it under control. The Ottomans obtained 11,000 rifles, 2 million bullets, 67 cannons, and 19 machine guns from the surrender. On May 11, a new peace conference opened at Batum, at which the Ottomans extended their demands to include Tiflis as well as Alexandropol and Echmiadzin. The Armenian and Georgian members of the Republic's delegation stalled. The Ottoman army moved once again on May 21, leading to the Battle of Sardarapat (May 21–29), the Battle of Kara Killisse (1918) (May 24–28), and the Battle of Bash Abaran (May 21–24). Although the Armenians managed to inflict a defeat on the Ottomans, the Armenian army was scattered. Meanwhile, there was a fruitless German-mediated peace conference between the Ottoman and Transcaucasian governments at Batumi, which closed on May 24, 1918. Two days later, Georgia withdrew from the federation and declared itself a separate republic, encouraged by the German mission led by Friedrich Freiherr Kress von Kressenstein and Friedrich Werner von der Schulenburg: the independent Democratic Republic of Georgia was proclaimed, formalized by the treaty of Poti, which Ottoman expansion. On the same day the First Republic of Armenia declared its independence, followed by the Azerbaijan Democratic Republic. On June 4, the First Republic of Armenia was forced to sign the Treaty of Batum. However under the leadership of Andranik Ozanian Armenians in the mountainous Karabag region resisted the Ottoman 3rd army throughout the summer and established the Republic of Mountainous Armenia. In August, they set up an independent government in Shusha, the administrative center of the region. In June, German troops arrived to compete with the Ottomans for Caucasian influence and resources, notably the oilfields at Baku. Early in June, the Ottoman army under Vehip Pasha renewed its offensive on the main road to Tiflis, where they confronted a joint German-Georgian force. On June 10, the 3rd Army attacked and took many prisoners, leading to an official threat from Berlin to withdraw all of its troops and support from Ottoman Empire.