Moved router-like functions from nodeEngine to router.