Do something automatically when a task is complete