Return 1 on errors.