Turned scaling function into fully functional shrink function