Updated 'generalize' methods to allow for generalizations over distance.