Make railRoadData functional