Renamed "probability" into "weight"