Corrected distance calculation.  Perform verification of the result