 Bakhatbar Singh Basnet, brother of assassinated Kirtiman Singh, was then given the post of mul kaji During his tenure as the mul kaji, on 28 October 1801, a Treaty of Commerce and Alliance was finally signed between Nepal and East India Company that led to the establishment of the first British Resident, Captain William O. Knox, who was reluctantly welcomed by the courtiers in Kathmandu on 16 April 1802.The primary objective of Knox's mission was to bring the trade treaty of 1792 into full effect and to establish a "controlling influence" in Nepali politics.Almost eight months after the establishment of the Residency, Rajrajeshowri finally managed to assume the regency on 17 December 1802.