Moved vector creation to separate method