Added support for multiple M2 settings