Added continuation of teaching depending on error