Shortened resizer code
Shortening code