If in case an input of multi-region SM is received should flatten the SM first.
If in case an input of multi-region SM is received should flatten the SM first.