Add option to disable history.