Refactored errors.