Updated rules module