TTRegistry now working. Bugs still remain.