Made Attribute.generate not a broken mess