Added a few properties to Task and implemented Event triggers