Make the message queue wait method public