Refactored exchange parameter to msg to be consistent with usage otherwise