Added code to prevent double loading the plugin.