Added automatic resizing of Store