Edit to tasks to run distribute properly