 Here the large shop buildings of the Raleigh and Gaston Railroad were leased, much of the Martinsburg shop equipment installed, and the "Confederate States locomotive shops" were established and began operating, first to refit and repair the locomotives.During the early portions of the summer of 1861, Major General McClellan was able to gain control of the B&O RR northwest of Grafton, West Virginia and occasionally the B&O would push work crews in to restore and repair portions of the main stem, having considerable bridge repairs to perform.The repair languished, however, and the plight of the B&O "was sufficient to make many recall that the problems of the B&O were helping increase the profits of the Pennsylvania Railroad and the Northern Central, in which [the Secretary of War] Cameron had a major interest."