Added initial support for plugins.