History module: 2 functions combined to 1