Add optimize level option