Removed duplicated code from history.