Added support for history file.