 During the British Railways Modernisation Plan of the early 1960s, there was a need to build a large modern mechanised freight marshalling yard to concentrate goods train activity for the Edinburgh area, and this was situated at Millerhill, on the original E&DR main line a little south of the Niddrie junction.This was opened in 1962, but as wagonload freight declined in the UK, it was substantially closed in 1982.