Modifying functionality to return NaN for missing data points.