Make optimization level configurable