Updated for new shell scripts.