More accurate distance calculations