In May 1816, Edward Gardner arrived in Kathmandu as the first British Resident after the conclusion of the Treaty of Sugauli. Bhimsen used all his influence to cultivate peace, although not friendliness, with the British, "a Power," as he said, "that crushed thrones like potsherds." His foreign policy after the war was essentially the one handed down by Prithvi Narayan Shah – to keep Nepal isolated from any foreign influences. As such, although he was forced to accept a British resident in Kathmandu as per the Treaty of Sugauli, he made sure to cut off the resident from all contacts with life in Nepal to the point of making the Resident a virtual prisoner. Apart from petty harassment, the Resident was only allowed to travel within the Kathmandu valley, that too only with special escorts. The resident was also barred from meeting the king or any courtiers at will. Thus the threat of having a Resident in Kathmandu was not as keen as had been anticipated.