Adjusted to not reformat attributes when it is already formatted.