Improved performance of resizing.
Updated the package.