Adding some history functions