He went to work as a railway engineer in Ireland, then moved to Canada, where he was an engineer in the Canadian Pacific Railway and Canadian Northern Railway, being responsible for the construction of 1500 miles of railroad.