History module capturing state