direct responsibility of Nepalese defeat. Hold on power 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. Later British Resident Hodgson also remarked how the British couldn't capitalize the 1816 war victory over Nepal where he opined that the British should have either "crippled them [Nepal] effectually" or force Nepal in "giving surplus soldiery employment" to the British armies. On 20 November 1816, King Girvan Yuddha died of smallpox, aged nineteen. Girvan had two wives – the first wife committed sati with Girvan, while the second wife also died of smallpox after 14 days of Girvan's death. Thus, Girvan was succeeded by his only son, Rajendra Bikram Shah, an infant of two years old, after 18 days of his father's death on 8 December 1816. Therefore, Bhimsen Thapa, in collusion with the queen regent, Tripurasundari, remained in power despite the defeat of Nepal in the Anglo-Nepalese War of 1814–16. There was a sustained opposition against Bhimsen from factions centered around leading members of other aristocratic families, notably the Pandes, who denounced what they felt was his cowardly submission to the British. Paradoxically, the peacetime after the Anglo-Nepalese War saw the inflation and modernization of the Nepal army, which Bhimsen used to keep his opposition under control, while at the same time convincing the suspicious British that he had no intention of using it against them. Bhimsen appointed his own family members and his most trusted men to the highest positions at the court