Keep track of state of tasks