Coppied over the c# classes used in sst and tts