During the last session of Azerbaijani Parliament on April 27, 1920 under pressure of the BolshevikRussian11th Red Army and ultimatum from Caucasian Committee of the Russian Communist Party which invaded Azerbaijan, the deputies decided to disband the government in favour of the Bolsheviks to avoid bloodshed. Once the Bolsheviks took over, they abolished all structures of the Azerbaijani government and established the Azerbaijan Interim Revolutionary Committee administered by Azerbaijani communists Nariman Narimanov, Aliheydar Garayev, Gazanfar Musabekov, Hamid Sultanov and Dadash Bunyadzade. The Bolsheviks dissolved the Azerbaijani Army, executed its generals and officers, and nationalized private industries. In May 1921, the first All-Azerbaijan Soviet Session made up of newly elected deputies from all regions of Azerbaijan convened in Baku. The elected deputies were mainly drawn from poor, uneducated, unprepared factory workers and villagers which facilitated complete rule from Moscow. The first session established the Azerbaijan Central Executive Committeeconsisting of 75 members and its board with 13 members. From 1921 through 1937, nine sessions of All-Azerbaijan Soviets were convened. In 1937, during the 9th session of the All-Azerbaijani Soviets a new Azerbaijan SSR Constitution was ratified and the new legislative body the Supreme Soviet of Azerbaijan SSR was established. The first elections to Supreme Soviet took place on June 24, 1938. Out of 310 deputies elected, 107 were workers, 88 collective farmers and 115 educated civil servants. Seventy two of the deputies were women. Due to the authoritarian nature of Soviet rule where most new initiatives were met with hostility, the parliament was virtually ineffective. Due to multiple reforms and restructuring in the government of the Azerbaijan SSR in the 1970s-1980s, the role of the Supreme Soviet increased. Many legislative reforms including the ratification of the new Azerbaijan SSR Constitution of 1977 took place. After the demands of the Armenian SSR to transfer the NKAO region of Azerbaijan to Armenia, the parliament was largely passive and indifferent. On October 18, 1991 the Supreme Soviet passed a resolution confirming the restoration of the independence of Azerbaijan.