Add mm upgrade script