The strengthening of the castle of Buda in post-revolution Hungary started after Lieutenant Field Marshal Josip Jelačić 's Croatian army entered Hungary to overthrow Lajos Batthyány's national Hungarian government and was advancing on the Hungarian capitals. But the first plans for this were drawn up after Jelačić had been defeated at Pákozd on 29 September 1848 and retreated from Hungary. Although the enemy retreated, the fear he had caused made the Hungarians think about strengthening Buda and Pest. They carved out arms stores in the rock of the Gellért Hill. At the beginning of October 1848, Artillery Lieutenant József Mack published a detailed plan to defend the capitals in the newspaper "Kossuth Hírlapja" ("Kossuth's Gazette"). In this work Mack wrote that it was not true that the castle could not be defended, saying that with the 50 cannon in the castle any enemy could easily be kept at a distance. He claimed that enemy artillery could only threaten the castle from Gellért Hill, and that with just six 24-pdr cannon he could prevent anyone from installing their batteries there. He also said that the cannon could prevent enemy rocket batteries from burning down the city. As for the forces necessary to hold the castle, Mack stated that 2,500 soldiers and 300 artillerymen would be enough. In the autumn of 1848 the Hungarian patriotic militiamen formed an artillery corps, and received a battery of 6-pdr guns. He also wrote that the cannons can prevent also the enemy rocket batteries to burn down the city. About the necessary forces to hold the castle Mack wrote that 2500 soldiers and 300 artillerymen are enough. In the Autumn of 1848 the Hungarian patriotic militiamen formed an artillery corp, and received a battery made of guns of 6 pounds. In December 9 cannon and 2 howitzers arrived which, according to an inscription on one of them, were made in 1559. Some of these cannon would be actually used in the defense of the castle in May 1849.