Added a resize() and change few things