The government of San Martín repeated some of the ideas outlined in the "Operations plan", drafted by Mariano Moreno at the beginning of the war. A combination of incentives, confiscations and planned economy allowed the country to provision the army: gunpowder, pieces of artillery, mules and horses, food, military clothing, etc. Mining increased, with increased extraction of lead, copper, saltpeter, sulfur and borax, which had several uses and improved local finances. Hundreds of women wove clothing used by the soldiers. Father José Luis Beltrán headed a military factory of 700 men, which produced rifles and horseshoes. San Martín stayed on good terms with both the government of Buenos Aires and the provincial "caudillos", without fully allying with either one. He was able to receive provisions from both. He considered that the war of independence took priority over the civil wars.