Refactor resizing just a little