Minor changes that make the resize much more decent