Adding model event logging