The Weighting Function