[TSM] HasTab() method.
[TSM] Don't save same tab twice.
[TSM] Reduced code size.