Simplified the plugin class.