Implemented agency and routes reading.