Added support for loading plugins