Add base class for plugins.