the Vizier. Immediately after their defeat, Abdurahman Pasha ordered the execution of several notables who supported them, including Ruščuklija. Some 300 beys from the regions of Banja Luka, Travnik, Gradačac, Tuzla and Livno were imprisoned. By March 1827, Abdurahman Pasha managed to regain the whole of Bosnia under his control. In May 1827, Abdurahman Pasha managed to eliminate all the opposition to the military reform, while the first training of the reformed military was conducted in Sarajevo. Abdurahman Pasha was dismissed and replaced by Morali Namik Ali Pasha in August 1828. That year, the vizier's seat was moved from Travnik to Sarajevo. The disunity among the Bosnian ayans also contributed greatly to the Vizier's success. Avdo Sućeska considers that the reason for the disunity of the ayans was in the sense of loyalty the Bosnian Muslims had towards the Ottoman Empire and the Sultan as well as the religious leader, the Shaykh al-Islām. The ayan council was divided towards the reforms and split on a regional basis with Herzegovinian notables supporting the Sultan. Gradaščević rose as a head of the anti-reformist ayans, while those who opposed him were led by Ali Pasha Rizvanbegović. Rizvanbegović was also joined by Smail Agha Čengić of Stolac and Hasan Bey Resulbegović of Trebinje. The ayans of the region of Posavina held a meeting in Tuzla in 1830 and decided to rise a rebellion against the reforms, mainly because the Porte gave some of the territories of the Sanjak of Zvornik to Serbia from which they felt threatened and considered that the Porte wasn't doing enough to protect them. Rising tide and early successes Another outcome of the Tuzla meeting was an agreement that another general meeting should be held in Travnik. Since Travnik was the seat of the Bosnian eyalet and the vizier, the planned meeting was in effect a direct confrontation with Ottoman authority. Gradaščević thus asked all involved to help assemble an army beforehand. On 29 March 1831, Gradaščević set out towards Travnik with some 4,000 men. Upon hearing word of the oncoming force, Namik-paša is said to have gone to the Travnik fort and called the Sulejmanpašić brothers to his aid. When the rebel army arrived in Travnik they fired several warning shots at the castle, warning the vizier that they were prepared for a military encounter. Meanwhile, Gradaščević sent a detachment of his forces, under the command of Memiš-aga of