Change LIFO to FIFO