Refactored class for sending transactional messages