Adding distance calculations