Changed routes.append with add_routes in routes