To this may be added the formation of the military academy at Bardo in March 1840, which supported the development of the beylical army, numbering as many as 5,000 men in seven infantry regiments, four artillery regiments and two cavalry regiments. At the same time, the Bey reformed religious education at the Al-Zaytuna Mosque, bringing in thirty professors, of whom fifteen were for the Maliki school of jurisprudence which prevailed in Tunisia, and fifteen followed the Hanafi school followed by the ruling families of the country who were of Turkish origin. All were appointed and salaried by the state and placed under the control of a sharia council dominated by the two leading jurists of their time, Sidi Brahim Riahi, the Maliki Grand Mufti and Mohamed Bayram IV, who was both the Hanafi Grand Mufti and the first in Tunisia to bear the title Shaykh al-Islam. The Bey also made a donation of a large number of Arabic manuscripts to the Zaytuna mosque. State enterprise was also strongly encouraged. The businessman Mahmoud Ben Ayed was charged with building a small industrial complex to meet the needs of the new army. In 1840 a textile works was established at Tebourba, powered first by water-wheel and later by steam engines imported from Great Britain. Tanneries were also built, as was a cannon foundry at Bardo, a gunpowder works and a flour-mill at Djedeida. Supporting these innovations were new government offices - the rabta managing state grain silos; the ghaba in charge of olive oil forests; and the ghorfa, the central state procurement office, as well as a mint at Bardo. Not all of his initiatives were successful however – he had a new frigate built at La Goulette which was so large it could not fit in the channel down to the sea. Tentative Reforms Ahmad Bey's modernisations had little impact on the economy or the life of Tunis, or on the institutions of the Regency. He did not appear to be much interested in urban developments or the improvement of Tunis, other than rebuilding the Bab al Jazira mosque, and restoring the Bab el Bhar in 1847 and 1848. More of his attention went on the royal palaces at the Bardo, La Goulette and Mohamedia. The latter, known as the Salehia after the name of the local saint Sidi Saleh, was rarely used by the Bey despite the enormous cost of