Devices have integer state instead of a binary state now!