 Mawdud, now with the control of all of the Ghaznavid Empire except Lahore, which was under the control of his rebellious brother Majdud, then appointed Ahmad Shirazi as his vizier, while Abu Sahl Zawzani was appointed as his chief secretary.In 1042, Mawdud invaded the territories of the Seljuqs and briefly occupied Balkh and Herat.This greatly increased the fame of Mawdud and made the Karakhanid ruler Böritigin acknowledge him as his suzerain.