Add support for resizing.