Added FIFO Algorithm