Update to latest custom script API