The Dalai and Panchen Lamas were no longer allowed to petition the Qing Emperor directly but could only do so through the ambans. The ambans took control of Tibetan frontier defense and foreign affairs. The ambans were put in command of the Qing garrison and the Tibetan army (whose strength was set at 3000 men).