Pass root to Resource.