Murad sent Hadım Şehabeddin, Beylerbey (or governor) of Rumelia, to annex Wallachia in August 1442. Hunyadi annihilated the Ottoman army in the Carpathian Mountains in September, and made Vlad's cousin, Basarab, voivode of Wallachia. Before the end of the year, Murad II released Vlad. Vlad had to pledge that he would not support the enemies of the Ottoman Empire and he would pay an annual tribute and send 500 Wallachian boys to serve as janissaries in the sultan's army. He was also forced to leave his two sons, Vlad and Radu, as hostages in the Ottoman Empire.