Final version of demoMSE