Support method callbacks
Support more types of attribute inputs