He came here as the representative of Lord Cornwallis, the Governor General of the Company, to mediate in the dispute between China and Nepal in the context of Sino-Nepalese War (1788-1792). ... Nepal no longer needed the Company to fight out Tibetans and Chinese.