Changed much of the shared code to ttincludes.