Add method to calc history hash