Better rule processing