Finished up to batch sampling.