Tweaks to script utils.