However, the majority of Jadidists, including leaders such as Abdurrauf Fitrat and Fayzulla Khodzhayev, cast their lot with the communists. In 1920 Khojayev, who became first secretary of the Communist Party of Uzbekistan, assisted communist forces in the capture of Bukhara and Khiva. After the Amir of Bukhara had joined the Basmachi movement, Khojayev became president of the newly established Bukharan People's Soviet Republic. A People's Republic of Khorezm also was set up in what had been Khiva.