Course addErrorFlag method added.