Updates the samples