Replace history saving