Updated Lipschitz constant calculation to be invariant to sphere location.