Performance improvements; safer trigger recognition; optional custom triggers