Check if history functions are undefined
Merge pull request #9 from paralin/master

Check if history functions are undefined