Adding implementation for teach engine