Triggers

@BrettASwift Could you take a look in the morning?  This should fix the repeated success/fail bug, as well as doing a bunch of other stuff (see the commit comments for details).