Take a look at:
vec_dist
and the media_ commands