Adding distance calculation methods