Factors out Fifo mechanics