by the Iraq Levies) shouldering the full responsibility for external defense. Henceforth, the Iraqi army was increasingly relegated to internal security duties. Nevertheless, the army enjoyed considerable prestige, with the country's elites seeing the army as a national consolidating force: A strong army ensured Sunni dominance over the Shia majority; Said strong army would allow Baghdad to control the independent tribes who resisted centralization; The army would create a national identity. With the majority under control, the unruly tribes kept in line and a national identity across the heterogeneous population, the army would serve as a modernizing and socializing force that would help to weld together the backward Ottoman vilayets into a modern, unified Iraqi nation. There were doubts about the army's actual capabilities, however. In 1928, the number of British officers commanding Iraqi units was increased because Iraqi officers were slow to adapt to modern warfare. The army's first real test occurred in 1931, when Kurdish leader Ahmed Barzani unified a number of Kurdish tribes and rose up in open revolt. Iraqi army units were badly mauled by tribesmen under Shaykhs Mahmud and Mustafa Barzani. The Iraqi army's dismal performance did not impress, and the situation required the intervention of British troops to restore order. In 1932, the Kingdom of Iraq was granted official independence. This was in accordance with the Anglo-Iraqi Treaty of 1930, whereby the United Kingdom would end its official mandate on the condition that the Iraqi government would allow British advisers to take part in government affairs, allow British military bases to remain, and a requirement that Iraq assist the United Kingdom in wartime. The new state was weak and the regime survived for only four years, when it was toppled in a coup d'état in 1936. Upon achieving independence in 1932, political tensions arose over the continued British presence in Iraq, with Iraq's government and politicians split between those considered pro-British and those who were considered anti-British. The pro-British faction was represented by politicians such as Nuri as-Said who did not oppose a continued British presence. The anti-British faction was represented by politicians such as Rashid Ali al-Gaylani who demanded that remaining British influence in the country be removed. In 1936, General Bakr Sidqi, who had won a reputation from suppressing tribal revolts (and also responsible for the ruthless Simele massacre), was named Chief of the General Staff and successfully pressured King Ghazi bin