Adds support for optimizationLevel