Add pgd for each task