Work with pairs method to get it to build sub_routes and routes