Refractory and add message function