Added messages to the message queue and removed print statements