BUG: Do not assume every model has a name attribute.