Preparing the sample plan.