Added Event trigger feature. Needs work.