Add the code of deal, we put message to queue, manage the message and send them to back