Added back spawn attribute to run task.