New VectorForEach function