Modify get_routes to used new attributes