Added vector clearing