Remove set -e, to prevent exiting in the middle of the script