Added value checking for D and ModeVMax in ModeInfo.cs.