Finally adding TE code to ripo