After the Gurkhas invaded Tibet twice (1788 and 1791), the Qing sent Fukang'an with an army into Tibet and broke them. In 1793 the court promulgated the Twenty-Nine Article Ordinance for the Better Government of Tibet: the two imperial residents (ambans) placed equal with the Dalai and Panchen Lamas, supervising Tibetan affairs, with foreign relations, border defense and finance in their charge; the rebirths of the Dalai Lama, the Panchen Lama and the great hutuktus were to be fixed by lot — the candidates' birth dates and names written on slips and drawn from the golden urn presented by Qianlong, under the amban's supervision — the Golden Urn system, joined to the Tibetan tradition of tulku rebirth; the Dalai and Panchen successions thenceforth came by lot or by recognition under its procedure. The ordinance further set the state mint for Tibetan coinage, the drilling of the garrison, the rules of monastic estates — and barred the Dalai and Panchen families from interference in government, rewards and punishments for all civil and military officers of Tibet resting with the amban: the system of U-Tsang made uniform. The Qing's institutional government of Tibet reached its full form here and ran unchanged through Jiaqing, Daoguang, Xianfeng and Tongzhi; the golden urn is kept in Lhasa to this day.