Functional Unweighting