Move HistorySet to back-end