Add msg2() function which is used on several packages