Should we really expose `triggers`? It would probably be better for the VM to have an `addTrigger` function.