Setup phases for mq.