Add task manager which listens and adapts to state changes from task