Adding checks to see if the device is active by device id