Add attributes to the resource