Removed "set -e". redundant since "set -o errexit"