Added support for using hardware devices