Split ABC and LRT fns so can simulate even if ks library unavailable.