Add history replication and clear