Most functions now use TableauxState data record