Added block resizing