How does the queue system work?