The experiment however was short-lived. The CNT-run factories were unable to provide the militias with the necessary equipment because of the shortage of raw supplies. They failed to win the support of the majority of the working class, and their attempt to develop the social revolution was checked by the war with Franco’s army and the struggle with other Republican factions, notably the Communists. As Franco’s troops were closing in on Madrid, the CNT in Barcelona agreed with the UGT to accept the need for a unified command, military discipline, and conscription.