Add support for plugins and hooks