Renamed buffer to HISTORY_BUFF_SIZE