After the war, the Ottomans gave rights to the Serbs to collect local taxes. The displaced janissaries, excluded from the Ottoman Army following reorganization, sought refuge in Serbia (Sanjak of Smederevo) where they tried to revoke the rights granted to the Serbs. These renegade janissaries, called "dahije", murdered as many as 150 Serb leaders ("knezovi"), sparking the First Serbian Uprising (1804). The leader of the uprising, Karađorđe Petrović, had earlier served in the Austrian army as a volunteer during the Habsburg occupation. The uprising expanded into the Serbian Revolution (1804–17), which saw the "de facto" independence of Serbia.