 Thus most of the Doab was freed of Najib's agents and came under the control of Marathas.Ahmad Shah Abdali, before heading home in Afghanistan, kept Alamgir II on the throne with Imad-ul-Mulk as his wazir.But Abdali gave all the real power to Najib-ud-Daulah, his supreme agent in India and made him Mir Bakshi.