Updated the script because the scripting interface changed.