Added Proximity functions, and a spherical option for Proximities.