Add model event handling.