history_offset and sort_id added to data model