Added a few 'const' to filename parameters for History functions