Added hooks for attribute handling.