Implemented basic router.