Fixed TE recipes and cleaned up some unnecessary code