Optimized And and Or in CodeGen. Did some work on scan.