Implement queue/join.