Adding distance methods.