Added chat history tracker