Implemented direct parsing of the history file