Added the ability to construct trigger events