Implementing TEC controller