Applied script corrections from tgc