Add task history, better treatment of task status.