Update code to create the AdaptiveResize function