Made get_nearest donut desizing logic smart(er)