Removed deprecated getDistance logic