Added plugin_hooks that work like events for the plugins