The WPB directed conversion of industries from peacetime work to war needs, allocated scarce materials, established priorities in the distribution of materials and services, and prohibited nonessential production. It rationed such commodities as gasoline, heating oil, metals, rubber, paper and plastics. It was dissolved shortly after the defeat of Japan in 1945, and was replaced by the Civilian Production Administration in late 1945.