Resizing now working once and for all.