Copied message exchange example from other project for easy editing