Implemented a basic router.