The "tokstart" and "tokend" variables were changed to "ts" and "te".