TP working! some bugs to fix.