Reference to STATUS_ACTIVE does not work in the current version. Needs to be changed to DEVICE_STATUS_ACTIVE.