Meanwhile, the conflict between Afghanistan and the Punjab focused on the Khyber route. Dost Mohammad appealed to the HEIC for aid in recovering Peshawar, but the company could not help him without alienating its treaty ally Ranjit Singh. When Dost Mohammad redirected his appeal to Russia, the Governor-General Lord Auckland resolved to depose Dost Mohammad, and replace him with Shuja Shah Durrani. Restored to his throne in Kabul, the exiled former ruler would accept the Sikh gains west of the Indus, and the Company controlling his foreign policy. The agreement was formalised with the Treaty of Simla signed in June 1838 between Shah Shuja, the HEIC, and Ranjit Singh.