Refactored out Vector resize