Selecting appropriate quality-control rules.