Added support for even more device properties.
Fixed incorrect type used for error code.