Added some messaging utility funcions.