Added custom errors.