Moved the trigger check outside of the short sample loop so the variance in trigger times will be less, and triggers will be faster, on average.