Added weights to the preference model.