Add static distance method