In 1958, Cuba was a relatively well-advanced country by Latin American standards, and in some cases by world standards. Cuba was also affected by perhaps the largest labor union privileges in Latin America, including bans on dismissals and mechanization. They were obtained in large measure "at the cost of the unemployed and the peasants", leading to disparities. Between 1933 and 1958, Cuba extended economic regulations enormously, causing economic problems. Unemployment became a problem as graduates entering the workforce could not find jobs. The middle class, which was comparable to that of the United States, became increasingly dissatisfied with unemployment and political persecution. The labor unions, manipulated by the previous government since 1948 through union "yellowness", supported Batista until the very end. Batista stayed in power until he resigned in December 1958 under the pressure of the US Embassy and as the revolutionary forces headed by Fidel Castro were winning militarily (Santa Clara city, a strategic point in the middle of the country, fell into the rebels hands on December 31).