Add/update history.