Implemented resizing