Add auto resize option.
Add basic resizing.