Fix history data saving functionality
Cleaned up output, added meaningful output instead