Registation of device