Refine rules