Replace VLA with a vector