Integrated helper function (messageExchange).