The block after the end of the for loop looks like it can be cleaned up more.  Two assignments to ctype. Can/Should there be another symbol api use instead of direct Tcount touching?