Added diagnostics code that showed the mode changes to default when error happens