In 1703 the Irish House of Commons appointed a committee to bring in a bill to make the Barrow navigable; by 1800 the Barrow Track was completed between St. Mullin's and Athy, establishing a link to the Grand Canal which runs between Dublin and the Shannon. By 1845 88,000 tons of goods were being transported on the Barrow Navigation. Carlow was also one of the earliest towns to be connected by train. The Great Southern and Western Railway had opened its main line as far as Carlow in 1846, and this was extended further to Cork in 1849. The chief engineer, William Dargan, originally hailed from Killeshin, just outside Carlow. At the peak of rail transport in Ireland, Carlow county was also served by a line to Tullow. Public supply of electricity in Carlow was first provided from Milford Mills, approximately 8 km south of Carlow, in 1891. Milford Mills still generates electricity feeding into the national grid. Following independence in the early 1920s the new government of the Irish Free State decided to establish a sugar-processing plant in Leinster. Carlow was chosen as the location due to its transport links and large agricultural hinterland, favourable for growing sugar beet.