Improve module functions.
Add History module.