Device registration and root