Adding simple history rewriter