Added preference to sample.