Add optimization to osc and recompile