Removed duplicate function setplugin partial