Renamed 'Elem' to 'Resource' and 'Attr' to 'Field'