Refine the structure of the sample.