Fixed argument order for localized_fields to ensure backwards compatibility