Among other things, taxes were to be collected by local Serbian rulers with the title of obor-knez (dukes); freedom of trade and religion were granted and ordinary Serbs began to live in peace.
Selim III also decreed that some unpopular Janissaries were to leave the Belgrade Pashaluk as he saw them as a threat to the central authority of Hadži Mustafa Pasha.
Many of those Janissaries were employed by or found refuge with Osman Pazvantoğlu, a renegade opponent of Sultan Selim III in the Sanjak of Vidin.
[4] In the summer of 1797 the sultan appointed Mustafa Pasha on position of beglerbegi of Rumelia Eyalet and he left Serbia for Plovdiv to fight against the Vidin rebels of Pazvantoğlu.
[4] However, on January 30, 1799, the court of Sultan Selim III allowed the Janissaries to return, referring to them as local Muslims from the Sanjak of Smederevo.
Fearing the worst, Hadži Mustafa Pasha marched on Šabac with a force of 600 to ensure that the Janissaries were brought to justice and order was restored.