Attribute & command hooks definition