This vector should be constructed outside this function and reused.