Functionality to allow scoped selectors to change root.