Tough and Optimized Rule Engine