Merge "Add helper function to fill vectors."