Det var under Karl XVis regering.