TTStream implementation, doesn't compile yet (need to fix TT storage)