Third attempt at resizing