The application will run some tests to find out the state of the device to calculate the return value for this device.