The U.S. government directed the economy during WWI from consumer goods to military production through agencies like the War Industries Board and Food Administration to mobilize resources for the war effort. Propaganda was used to generate public support for the war and some immigrants and dissenting opinions faced discrimination or prosecution under laws like the Espionage and Sedition Acts. The war cost $33 billion which was paid for through taxes and war bonds.