Implement multiple queues and performance model.