Duplicate code segments are error-prone, hard to maintain, and inefficient. MES Model Examiner (MXAM) automatically identifies redundant and similar code segments and shows where these clone groups are located. Centralizing common code in each Stateflow chart increases safety and maintainability.