Fixed previously awful global state/lack-of-queues model.