He initially commanded the army tasked with defending the eastern approaches to Ioannina, but entered into an agreement with Ismail Pasha, the then commander-in-chief of the Sultan's forces, disbanding his army in exchange for the pashalik of Berat.[3]