Removed unused code from the plugin_worker