Implemented the tpa functions

Might go back and rework the return command to also use UUIDs. not sure