Migrating to stack-based history.