build-andor and build-thresh were missing the substitution argument.