Added vector functionality