Additional changes to check if plugin is enabled.