Using ensureCapacity instead of increaseCapacity.