Added readfile and route calculation.