Update vector elements.