Better QUEUE_FlushMessages().