Resize code now works.