Adds IHistory interface.
Fix null pointer exceptions in PathHistory.