Make the code more compatible with older TSF versions.