Improve prototype of resizing
Resizing actually works now