Add IRStats evaluator and refactor for readability