Added option to ignore errors.