Split off rescaling into separate functions