Some small replacement and some resizing