Attribute API framework (incomplete)