Before the Battle of Pákozd, Lajos Batthyány wanted him to take the leadership of the main Hungarian Army but finally it did not happen because at the military council in Sukoró János Móga volunteered to fight against the Croats.
On 12 December he was promoted to lieutenant general but after the Battle of Pancsova (present-day Pančevo) on 2 January, he resigned and handed over the leadership to János Damjanich on 9 January.