Put inputMessage in a queue