Moved the code for resizing