Change the vector initialization as a reference so the output actually gets saved for the vector inputs