Mohammad Ali Shah divided the army into three groups: he sent a group to Shahroud under the command of Ali Khan Arshad al-Dawla, who advanced to Varamin and were defeated by government troops, and Arshad al-Dawla was shot. A group went by the sea and its commanders were Mirza Mohammad Khan Amir Makram Larijani and Askar Khan Azam-ol-Molk who were defeated by Yeprem Khan and his Dashnaks. The middle army, in which Mohammad Ali Mirza himself participated, went to Astarabad via Mazandaran. Apart from Habibullah Khan Sartip, among the officials who were in this army are Amir Moayed Savadkuhi, Morad Khan Savadkuhi, Habibullah Khan Shoja Al-Molk Surtiji, Habibullah Khan Salar Azam Do Mehri and several others. In the meantime, Sardar Rafie Yanehsari, realizing the danger of Mohammad Ali Shah, marched towards them with his army. The two armies fought in Savadkuh, and the crisis ended with the defeat of Muhammad Ali Shah and his return to Russia. Sardar Rafi later fought with the Russian army many times during the Persian Campaign.