Put set -o pipefail to fail if piping commands fail