Changed return type from PluginResult to boolean