Added some helper vector functions