Register TP Command, and fix bugs in the Command itself.