Added function historyBufferReadPrevious