Clean history engine