More optimizations in compiler