Some time later, Karim Khan, Ali Mardan Khan and another Bakhtiari chieftain named Abulfath Khan Bakhtiari reached an agreement to divide the country among themselves and give the throne to the Safavid prince Ismail III. However, the cooperation ended after Ali Mardan Khan invaded Isfahan and killed Abulfath Khan. Subsequently, Karim Khan killed Ali Mardan Khan and gained control over all of Iran except Khorasan, which was ruled by Shahrukh, the grandson of Nader Shah. Nevertheless, Karim Khan did not adopt the title of "Shah" for himself, preferring the title, "Vakil e-Ra'aayaa" (Representative of the People).