Resize method redone.