Implemented resize.