In the second quarter of the 19th century, after the fall of the Albanian pashaliks and the Massacre of the Albanian Beys, an Albanian National Awakening took place and many revolts against the Ottoman Empire were organized. These revolts included the Albanian Revolts of 1833–1839, the Revolt of 1843–44, and the Revolt of 1847. A culmination of the Albanian National Awakening was the League of Prizren. The league was formed at a meeting of 47 Ottoman beys in Prizren on 18 June 1878. An initial position of the league was presented in a document known as Kararname. Through this document Albanian leaders emphasized their intention to preserve and maintain the territorial integrity of the Ottoman Empire in the Balkans by supporting the porte, and "to struggle in arms to defend the wholeness of the territories of Albania". In this early period, the League participated in battles against Montenegro and successfully wrestled control over Plav and Gusinje after brutal warfare with Montenegrin troops. In August 1878, the Congress of Berlin ordered a commission to determine the border between the Ottoman Empire and Montenegro. Finally, the Great Powers blockaded Ulcinj by sea and pressured the Ottoman authorities to bring the Albanians under control. Albanian diplomatic and military efforts were successful in wresting control of Epirus, however some lands were still ceded to Greece by 1881.