Improve resizing.