Added closure to avoid `root_uri` collisions in the global namespace.