Understanding emotions fosters teamwork