Basic resizing functionality.