Added table resizing