Adding a message listener for class for cohort messages.