Implemented resize