Implement enqueing of messages.