Updated rules module.