How does the waiting queue work ?