Working on Mahalanobis distance 'shortcut'.