Rewrite commitEntryHistory