Distance calc now works... albeit very slowly!