Keith also invested in gold mining in Abangares, in the Costa Rican province of Guanacaste. In 1912 he returned to railroad building, organizing the International Railways of Central America and eventually completing an 800-mi (1,287-km) railway system, but died before realizing his dream of a line from Guatemala to the Panama Canal. His work profoundly altered the economic life of Central American countries. United Fruit Company was involved in the overthrow of the Arbenz government in Guatemala but this occurred some 25 years after Keith's death.