Deleted extraneous rescale function