Added probabilistic weighting, robust to NA values