Finished TSU encoding stuff