Add set -eu. But is this ok?