Additional changes

Right. This would also only keep the state of the last executed task.