Correct exports, use level 2 optimizations