Added new changes for appending hist data to top and not creating new hist
file.