Created a dynamic helper function that outputs vectors with metadata.