Update libtsfuncs to add cat checks.