Modified code in HistoryBO.