Added callbacks and events.