Added get message with timeout function to mq.