Add support of advanced optimization.