QueueModel: WIP refactoring.