On September 5, 1917, at the request of President Wilson the Justice Department conducted a raid on the IWW. They stormed every one of the 48 IWW headquarters in the country as "month's end, a federal grand jury had indicted nearly two hundred IWW leaders on charges of sedition and espionage" under the Espionage Act. Their sentences ranged from a few months to ten years in prison. An ally of the Socialist Party had been practically destroyed. However, Wilson did recognize a problem with the state of labor in the United States. In 1918, working closely with Samuel Gompers of the AFL, he created the National War Labor Board in an attempt to reform labor practices. The Board included an equal number of members from labor and business and included leaders of the AFL. The War Labor Board was able to "institute the eight-hour day in many industries, [... to raise wages for transit workers [...] to demand equal pay for women [...". It also required employers to bargain collectively, effectively making unions legal.