Add setting to allow overriding the history hash generation with a custom function.