Producing output with 0 and NaNs.
Producing output with 0 and NaNs.