Adds support for dynamically specify the resizing algorithm