Queue of messages problem