First prototype of message queue handler