Returning unique attributes only
Added method calculateInvalidFields()