Add a data pointer to the message handler