Prepare samples.