FIFO algorithm complete