Added resolve method to router.