Historygen. Map work. can_group fixes