Add error mode switching