Added vector calculations