Added batch option.