Update pms_plugin.php