 It provided a vital transport link between the eastern United States and California during the mid 19th century and was used for the construction of the Panama Canal.In 1979 the US transferred control of the railroad to Panama; in 1998 it was privatized and since 2000, it runs on .Prior to that it ran on broad gauge.