Some improvements to vectors