Removed handling of NaNs in input data.