Updated plugin script.