Added TaskListener for handling events triggered when working with tasks