Add ability to empty the message queue