Added a simple message queue class