Added experimental history rewrite.