Implement first bits of device states.