Prepare MQ.