Refactored rules generator
Refactored rules generator
Refactored rules generator