Added registering the device.