Extracted rules engine