Update for new script system