Initial checkin for distance calculation