In April 1920, while the Azerbaijani army was locked in Karabakh fighting local Armenian forces, Azerbaijan was taken over by Bolsheviks. On 10 August 1920, Armenia signed a preliminary agreement with the Bolsheviks, agreeing to a temporary Bolshevik occupation of these areas until final settlement would be reached. In 1921, Armenia and Georgia were also taken over by the Bolsheviks. After the Sovietization of Armenia and Azerbaijan, Kavbiuro decided that Karabakh would remain within Azerbaijan SSR with broad regional autonomy, with the administrative centre in the city of Shusha. The oblast's borders were drawn to include Armenian villages and to exclude as much as possible Azerbaijani villages. The resulting district ensured an Armenian majority.