Added hooks and events.