thirteen years, was built to a 4 ft 6 in gauge and was in a dilapidated state in terms of both infrastructure and rolling stock. Nevertheless, the concern brought with it a number of advantages: its proprietors had developed an efficient coal-marketing organisation which would greatly benefit its new owners, it consolidated the NBR's position in Edinburgh while also barring the rival Caledonian Railway from the Lothian Coalfields, and, perhaps most importantly, the E&DR pointed in the direction of Carlisle. Parliamentary authorisation for the line's acquisition was obtained on 21 July 1845 with the passing of the North British Railway (Edinburgh & Dalkeith Purchase) Act, which allowed the NBR to lay a spur from its Edinburgh-Berwick line near Portobello to the E&DR at Niddrie, thereby allowing NBR services to run directly from North Bridge station to Dalhousie. Edinburgh and Hawick Railway Even before the NBR had obtained its Act authorising the acquisition of the E&DR, John Learmonth had instructed John Miller to carry out a flying survey of the territory to the south of Dalkeith for a potential line to Kelso which would connect with a branch from Berwick. The scheme, which would see a line from the E&DR's terminus at Dalhousie Mains to Hawick, was discussed at a shareholders' meeting on 19 December 1844 where it drew criticism for being nearly as long as the NBR's Berwick line. Learmonth described the line as a "protective" one to guard against incursions by the NBR's Glasgow-based rival, the Caledonian Railway, and stated that there was no intention of extending it further to Carlisle. The proposal having been carried by a substantial majority, the Act authorising the line was obtained on 21 July 1845 with the incorporation of the Edinburgh and Hawick Railway. Although nominally independent, the company had £400,000 of its capital subscribed by NBR directors and the shares, each bearing a 4% guarantee, were to be transferred to NBR shareholders after incorporation. A special shareholders' meeting on 18 August 1845 authorised a further £400,000 to be raised which would be used to buy out the Edinburgh and Hawick company. At the same time, Learmonth revealed that it was in fact intended to continue to Carlisle. The line would first be extended to Galashiels by paying £1,200 to buy out the independent Galashiels Railway project. The line to Hawick was to be the greatest and most costly of the NBR's lines.