Renamed old_size and new_size to smaller_size and bigger_size.