Add code for mailmote upgrade