Add messageQ code