Update AdvancedTS.cs