Improve Resizer logic