Modernize vector code.