Update router.cpp