Replaced FIFO with ram