Work on bug #8289.  I added the fct function to the device class.