Which version do you use? There are some useful vector functions that have been added in 7.5x I think.