Almost finished, just need to fix MQ results-printing code