History is implemented but there is a bug when historyList is full