Added mq-setup.sh + Refactoring.