Move messages to en/dequeue functions