The Fitchburg Railroad was incorporated on March 3, 1842, opening between Boston and Fitchburg on March 5, 1845 and going right through the middle of Shirley Village.
At that time, Main Street kept its name but was only on the north side of the tracks and the south side of the tracks became Front Street.
Here is what a steam engine looked like in the 19th century.