Implemented dynamic resizing capability.