Reimplementing reweighting