Add support for integrating with gui classes