Used set -e for scripts