Remove some debug messages from TE
Partially added FunctionShift, doesn't work yet.