Refactor for proper resizing