Added a custom flag for the level of optimization