Adding CPluginManager and using it instead of manually finding plugins
everytime we need them.