Added attrinfo function.