How did railways turn around the freight train?