Fixing an issue with the plugin class where the define_type method was not defined before being called.