Added handling of NAs in moving window parameters.