Implemented sending of the message into the queue