Added history support using a limited length FIFO.