Allow the number of refinement values to be controlled.