Implement basic resizing