Handling the juding queue in fifo order.