Factor out file IO.
Add routing table checker.