Added generating device class.