Adding state dump task.