Assigning custom attributes to bodies