UPGRADE: Drawing History now uses template class HistoryEventFunction.