Added agendaUpdated hook. Fixes #1439