Use NaN as default value for Z