Added the reweighting step