Changed computation of IV_dnz and IV_onz