The Ten Years' War in Cuba brought Cuban sugar planters to the country in search of new lands and security from the insurrection that freed their slaves and destroyed their property. Most settled in the southeastern coastal plain, and, with assistance from Luperón's government, built the nation's first mechanized sugar mills. They were later joined by Italians, Germans, Puerto Ricans and Americans in forming the nucleus of the Dominican sugar bourgeoisie, marrying into prominent families to solidify their social position. Disruptions in global production caused by the Ten Years' War, the American Civil War and the Franco-Prussian War allowed the Dominican Republic to become a major sugar exporter. Over the following two decades, sugar surpassed tobacco as the leading export, with the former fishing hamlets of San Pedro de Macorís and La Romana transformed into thriving ports. To meet their need for better transportation, over 300 miles of private rail-lines were built by and serving the sugar plantations by 1897. An 1884 slump in prices led to a wage freeze, and a subsequent labor shortage was filled by migrant workers from the Leeward Islands—the Virgin Islands, St. Kitts and Nevis, Anguilla, and Antigua (referred to by Dominicans as "cocolo"s). These English-speaking blacks were often victims of racism, but many remained in the country, finding work as stevedores and in railroad construction and sugar refineries.