Change from bash -e to set -e