PM directs restructuring of Railways on modern lines