Adds enabling, disabling and toggling of the plugin.