In 1986, the NRA captured Kampala with a force of 14,000 soldiers, including 500 Rwandans, and formed a new government. After Museveni's inauguration as president he appointed Kagame and Rwigyema as senior officers in the new Ugandan army; Kagame was the head of military intelligence. In a 2018 paper, Canadian scholar and Rwanda expert Gerald Caplan described this appointment as a remarkable achievement for a foreigner and a refugee. Caplan noted Museveni's reputation for toughness, and said that Kagame would have had to be similarly tough to earn such a position. He also commented on the nature of military intelligence work, saying "it is surely unrealistic to expect that Kagame refrained from the kind of unsavory activities that military security specializes in." In addition to their army duties, Kagame and Rwigyema began building a covert network of Rwandan Tutsi refugees within the army's ranks, intended as the nucleus for an attack on Rwanda. In 1989 Rwanda's President Habyarimana and many Ugandans in the army began to criticise Museveni over his appointment of Rwandan refugees to senior positions, and he demoted Kagame and Rwigyema.